﻿@model IEnumerable<FCNS.ERP.Models.ErpProductPack>

@{
    ViewBag.Title = "商品套餐";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2> @ViewBag.Title</h2>

<p>
    <a class="newObjA" href="/Basic/ProductPackNew">新增</a>
</p>
<table class="dataTable">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DateTimeStart)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DateTimeEnd)
            </th>
            <th>
               套餐明细
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DateTimeStart)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DateTimeEnd)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ProductList)
                </td>
                <td>
                    @Html.ActionLink("编辑", "ProductPackEdit", new { id = item.Id }) |
                    <a href="ProductPackDelete/@item.Id" class="objDelete">删除</a>
                </td>
            </tr>
        }
    </tbody>
</table>
